package com.et114.components.acegi;

//import org.springframework.util.Assert;


/**
 * Author: guanhw Date: 2006-3-15
 */
public class Constants extends org.acegisecurity.allways.Constants {
	public static String SESSION_CURRENT_USER_KEY = "currentUser" ; 
	public static String CURRENT_URSER_MAX_ROLETYPE = "currentUserMaxRoleType" ;
	public static String APPLICTION_ONLINE_KEY = "onlineuser" ;
	
	public static final String	STATUS_INVALID		= "0";
	public static final String	STATUS_VALID		= "1";
	public static final String	STATUS_AUTH			= "1";
	public static final String	STATUS_UNAUTH		= "0";
	
	public static final byte    RESOURCE = 0x1; 
	public static final String	RESOURCE_URL		= "URL";
	public static final String	RESOURCE_METHOD	= "METHOD";
	public static final String	RESOURCE_COMPONENT	= "COMPONENT";

	public static final byte    PRINCIPAL = 0x2; 
	public static final String  PRINCIPALID_ROLE = "ROLE" ; 
	public static final String  PRINCIPALID_TITLE = "TITLE" ; 
	public static final String  PRINCIPALID_USER = "USER" ; 
	
	
	public static final byte CACHE_NEW = 0x1 ; 
	public static final byte CACHE_MOD = 0x2 ; 
	public static final byte CACHE_DEL = 0x3 ; 
	
	public static final String CACHE_ID = "id" ;
	public static final String CACHE_NAME = "name" ;
	
	public static String URL_RESOURCES_SPLIT = ";" ;
	
	public static int ORG_GROUP_BASE_VALUE = 1; 
	
	public static final String LDAP_ATTR_LOGINNAME = "uid" ;
	public static final String LDAP_userSearchBase = "ou=people" ; 
	public static final String LDAP_groupSearchBase = "ou=groups" ; 
	public static final String LDAP_titleSearchBase = "ou=titles" ; 
	public static final String LDAP_roleSearchBase = "ou=roles" ; 
	public static final String LDAP_functionSearchBase = "ou=fucctions" ; 
	public static final String LDAP_BASE_DN = "dc=mycompany,dc=com" ;

	public static final byte ROLE_TYPE_SUPER = 0x1 ;  //AllwaysAdmin
    public static final byte ROLE_TYPE_SYSTEM = 0x2 ; //SystemAdmin
    public static final byte ROLE_TYPE_ORG_MANAGER = 0x3 ; //org mananger
	public static final byte ROLE_TYPE_USER = 9 ;  
	public static final byte ROLE_TYPE_NONE = 10 ;  

	public static final String ROLE_DIC_BIZ_KEY = "role.roleType" ;
	public static final String RESOURCE_DO_AUTH_KEY = "resource.authType" ;
	public static final String RESOURCE_DO_AUTH_ROLE = "role" ; 
	public static final String RESOURCE_DO_AUTH_TITLE = "title" ; 
	public static final String RESOURCE_DO_AUTH_USER = "user" ; 
	
	public static final String LOG_OPER_NEW = "NEW" ; 
	public static final String LOG_OPER_UPDATE = "UPDATE" ;
	public static final String LOG_OPER_REMOVE = "REMOVE" ;
	
	public static final String JOBSTATE_OUT = "2" ;
	public static final String JOBSTATE_IN = "1" ;
	
	public static final String ORG_GROUP_ENTITY = "org.group.entity" ;
	public static final String ORG_GROUP_ENTITY_Y = "1" ;
	public static final String ORG_GROUP_ENTITY_N = "0" ;
	
	public static final String ORG_DEFAULT_GRPID = "defaultGrpId";
	
	//role:1 title:2 all:3
	public static byte AUTH_TYPE = ( byte ) 1 ; 
	public static byte AUTH_TYPE_ROLE = ( byte ) 1 ; 
	public static byte AUTH_TYPE_TITLE = ( byte ) 2 ; 
	public static byte AUTH_TYPE_ALL = ( byte ) 3 ; 
	
	
	public static final String AUTH_ACCESSDENIED = "SYS_AW Access Denied!" ;
	public static final String SYS_EXP_K = "SYS_EXP_" ; 
	
	public static final String NULL_URL = "/" ; 
	
	
	public static final byte SYSTEM_MODE_AGILE = 1 ; 
	public static final byte SYSTEM_MODE_SLOW = 2 ; 
	
	public static final String 	ORG_EMP_POHONE_PATH = "/upload/org/emp/image/" ; 
	public static final String  ORG_EMP_PHONE_Z = "z" ; 
	public static final String  ORG_EMP_PHONE_F = "f" ; 
	
	
	public static final String  ORG_USER_FLG_REG_USER = "5" ; 
	public static final String  ORG_USER_FLG_MANAGER_USER = "1" ; 
	
	public Constants ( ) {
	}



}
